<div class="row RowSpace LastRow">
  <DataGrid module="Module.MO" isedit="false">
      <TextBoxColumn DisplayName="单号" width="120px" ValueField="Code"></TextBoxColumn>
      <TextBoxColumn DisplayName="物料" width="150px" ValueField="ItemMaster.Name"></TextBoxColumn>
      <NumberBoxColumn DisplayName="数量" width="60px" ValueField="Qty"></NumberBoxColumn>
      <NumberBoxColumn DisplayName="上线数量" width="80px" ValueField="OnlineQty"></NumberBoxColumn>
      <TextBoxColumn DisplayName="批号" width="80px" ValueField="LotNumber"></TextBoxColumn>
      <TextBoxColumn DisplayName="客户" width="192px" ValueField="Customer"></TextBoxColumn>
      <CalendarColumn DisplayName="开工日期" width="160px" ValueField="StartDateTime"></CalendarColumn>
      <CalendarColumn DisplayName="完工日期" width="160px" ValueField="EndDateTime"></CalendarColumn>
  </DataGrid>
</div>

<div class="row RowSpace" style="margin-top:10px;">
  <div class="LableDiv" style="width:50px;">
    <ModalBox Text="上线" WindowTitle='工单上线' beforeshow="btnOnLine()" IsDisplayBtn="false">
      <div class="row RowSpace">
        <div class="MOList_LabelLeft">生产批次</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.LotNumber}}">{{Module.MO.FocusedRecord.LotNumber}}</div>
        <div class="MOList_LabelLeft">单号</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.Code}}">{{Module.MO.FocusedRecord.Code}}</div>
      </div>
      <div class="row RowSpace">
        <div class="MOList_LabelLeft">客户</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.Customer}}">{{Module.MO.FocusedRecord.Customer}}</div>
        <div class="MOList_LabelLeft">物料</div>
        <div class="MOList_LabelRight" title="{{Module.MO.FocusedRecord.ItemMaster.Name}}">{{Module.MO.FocusedRecord.ItemMaster.Name}}</div>
      </div>
      <div class="row RowSpace">
        <div class="MOList_LabelLeft">可上线数量</div>
        <div class="MOList_LabelRight">{{Module.MO.FocusedRecord.Qty - Module.MO.FocusedRecord.OnlineQty}}</div>
        <div class="MOList_LabelLeft">本次上线数量</div>
        <div class="MOList_LabelRight">{{Module.BarcodeMaster.Records.length}}</div>
      </div>
      <div class="row RowSpace" style="margin-top:20px;margin-bottom:20px;"><Btn class="BtnAdd" style="float:right;" value="打印" ng-click="printBarcode()"></div>
      <div class="row RowSpace">
        <DataGrid module="Module.BarcodeMaster" IsEdit="false" height="300px">
            <NumberBoxColumn DisplayName="序号" width="80px" ValueField="OrderNum"></NumberBoxColumn>
            <TextBoxColumn DisplayName="芯片" width="300px" ValueField="Barcode"></TextBoxColumn>
        </DataGrid>
      </div>
    </ModalBox>
  </div>
</div>
